Application.ExecuteCommand("Quick Filter Components")

dim ws : set ws = CreateObject("WScript.Shell")
ws.RegWrite "HKEY_CURRENT_USER\Software\MyApp\PADS\ApplicationMode", 0, "REG_EXPAND_SZ"
ws.RegWrite "HKEY_CURRENT_USER\Software\MyApp\PADS\IsUnion", 0, "REG_EXPAND_SZ"
set ws = nothing

Application.ExecuteCommand("Align Parts")